import request from '@/utils/request'

// 查询资助学校列表
export function listSubsidize(query) {
  return request({
    url: '/fund/subsidize/list',
    method: 'get',
    params: query
  })
}

// 查询资助学校详细
export function getSubsidize(id) {
  return request({
    url: '/fund/subsidize/' + id,
    method: 'get'
  })
}

// 新增资助学校
export function addSubsidize(data) {
  return request({
    url: '/fund/subsidize',
    method: 'post',
    data: data
  })
}

// 修改资助学校
export function updateSubsidize(data) {
  return request({
    url: '/fund/subsidize',
    method: 'put',
    data: data
  })
}

// 删除资助学校
export function delSubsidize(id) {
  return request({
    url: '/fund/subsidize/' + id,
    method: 'delete'
  })
}
